import {login, getCode, logout} from '@/services/loginR'

export default {
  namespace: 'loginR',
  state: {

  },
  effects: {
    *login({payload}, {call}) {
      return  yield call(login, payload)
    },

    *getCode({payload}, { call}) {
      return  yield call(getCode, payload)
    },

    *logout({payload}, {call}) {
      return  yield call(logout, payload)
    }
  }
}
